﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="newbooklog.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.booklog.newbooklog" %>

<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>

   <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>  
   <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>
   <style type="text/css">
       #helpboxpagecover
{position:absolute;
	width:100%;
	height:100%;
	z-index:10;
	left: 0px;
	top: 0px;
	background-color:#eeeeee;
FILTER: alpha(opacity=80);
opacity: 0.8;
	}
   #helpbox
{position:absolute;
	width:600px;
	height:350px;
	z-index:20;
	background-color:#ffffff;
	border:solid 1px #C9DDF3;
	}
	.ffopt{-moz-opacity: 0.8;background-color: #003399;
border: 4px solid #003300;}

#helpbox .tlt{text-align:right;margin:0px;width:auto;height:25px;background-color:#C9DDF3}
#helpbox .tlt a{color:Red;font-size:18px;margin-right:10px;}
#helpbox .detail{margin:0px;width:auto;line-height:20px;height:280px;overflow:auto;padding:10px;}
#helpbox .nav{margin:0px;width:auto;height:25px;text-align:right;background-color:#C9DDF3;line-height:25px;}
   </style>
</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
                                            <input type="hidden" id="currproplist" />
                                            <input type="hidden" id="strwhere" />
                                            <input type="hidden" id="proplist" />
        <uc2:titlepage id="Titlepage1" runat="server" inittitle="审单"></uc2:titlepage>
        
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: center;" class="main-table">
                                    <tr>
                                        <td style="text-align: left; width: 25%;" colspan="2">
                                            &nbsp;</td>
                                        <td style="text-align: left; width: 22%;" colspan="2">
                                            订单确认号：<input name="txtConfnum" type="text" id="txtConfnum" maxlength="50" size="15" class="text-line" />
                                        </td>
                                        <td style="text-align: left; width: 14%;" nowrap="nowrap" colspan="2">
                                            客人姓名：<input name="guestname" type="text" id="guestname" maxlength="50" class="text-line" size="15" />
                                        </td>
                                        <td colspan="3" style="text-align: left; width: 39%;">
                                            预订产生日期从：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left; height: 25px;" colspan="2">
                                            用 户 名：<input name="txtUserName" type="text" id="txtUserName" class="text-line" style="width:66px;" />&nbsp;
                                        </td>
                                        <td style="text-align: left;" colspan="2">
                                            PMS确认号：<input name="txtpms" type="text" id="txtpms" maxlength="50" size="15" class="text-line" />
                                        </td>
                                        <td style="text-align: left;" colspan="2">
                                            客人地址：<input name="txtAddress" type="text" id="txtAddress" size="15" maxlength="50" class="text-line" />
                                        </td>
                                        <td colspan="3" style="text-align: left;">
                                            <input name="txtBookStartDate" type="text" size="8" id="txtBookStartDate" class="text-line"  value="yyyy-MM-dd" /><select name="selBookStartTime" id="selBookStartTime">
	<option value="0">00:00</option>
	<option value="1">01:00</option>
	<option value="2">02:00</option>
	<option value="3">03:00</option>
	<option value="4">04:00</option>
	<option value="5">05:00</option>
	<option value="6">06:00</option>
	<option value="7">07:00</option>
	<option value="8">08:00</option>
	<option selected="selected" value="9">09:00</option>
	<option value="10">10:00</option>
	<option value="11">11:00</option>
	<option value="12">12:00</option>
	<option value="13">13:00</option>
	<option value="14">14:00</option>
	<option value="15">15:00</option>
	<option value="16">16:00</option>
	<option value="17">17:00</option>
	<option value="18">18:00</option>
	<option value="19">19:00</option>
	<option value="20">20:00</option>
	<option value="21">21:00</option>
	<option value="22">22:00</option>
	<option value="23">23:00</option>
</select>到<input name="txtBookEndDate" type="text" size="8" id="txtBookEndDate" class="text-line"  value="yyyy-MM-dd"/>&nbsp;<select name="selBookEndTime" id="selBookEndTime">
	<option value="0">00:00</option>
	<option value="1">01:00</option>
	<option value="2">02:00</option>
	<option value="3">03:00</option>
	<option value="4">04:00</option>
	<option value="5">05:00</option>
	<option value="6">06:00</option>
	<option value="7">07:00</option>
	<option value="8">08:00</option>
	<option value="9">09:00</option>
	<option value="10">10:00</option>
	<option value="11">11:00</option>
	<option value="12">12:00</option>
	<option value="13">13:00</option>
	<option value="14">14:00</option>
	<option value="15">15:00</option>
	<option value="16">16:00</option>
	<option value="17">17:00</option>
	<option selected="selected" value="18">18:00</option>
	<option value="19">19:00</option>
	<option value="20">20:00</option>
	<option value="21">21:00</option>
	<option value="22">22:00</option>
	<option value="23">23:00</option>
</select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="2">
                                            渠道ID号：<input name="txtiata" type="text" id="txtiata" maxlength="50" style="width: 106px" class="text-line" />
                                        </td>
                                        <td style="text-align: left;" colspan="2">
                                            IATA：<input name="iata" type="text" id="iata" maxlength="50" size="15" class="text-line" />
                                        </td>
                                        <td style="text-align: left;" colspan="2">
                                            客人电话：<input name="txtPhone" type="text" id="txtPhone" size="15" maxlength="50" class="text-line" />
                                        </td>
                                        <td colspan="3" style="text-align: left;">
                                            最后修改日期从：
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="4">
                                            订单状态：<input name="bookstatus" value="New" type="checkbox" />新单<input  name="bookstatus" value="mod"  type="checkbox" />修改<input
                                                 name="bookstatus" value="cxl"  type="checkbox" />取消<input  type="checkbox" onclick="checkOrder('bookstatus',this)" />全选&nbsp;
                                        </td>
                                        <td colspan="2" style="text-align: left;">
                                            入住日期：<input name="txtRZDate" type="text" size="8" id="txtRZDate" class="text-line"  value="yyyy-MM-dd" />
                                        </td>
                                        <td style="text-align: left;" colspan="3">
                                            <input name="txtModiStartDate" type="text" size="8" id="txtModiStartDate" class="text-line"  value="yyyy-MM-dd"/><select name="selModStartTime" id="selModStartTime">
	<option value=""></option>
	<option value="0">00:00</option>
	<option value="1">01:00</option>
	<option value="2">02:00</option>
	<option value="3">03:00</option>
	<option value="4">04:00</option>
	<option value="5">05:00</option>
	<option value="6">06:00</option>
	<option value="7">07:00</option>
	<option value="8">08:00</option>
	<option value="9">09:00</option>
	<option value="10">10:00</option>
	<option value="11">11:00</option>
	<option value="12">12:00</option>
	<option value="13">13:00</option>
	<option value="14">14:00</option>
	<option value="15">15:00</option>
	<option value="16">16:00</option>
	<option value="17">17:00</option>
	<option value="18">18:00</option>
	<option value="19">19:00</option>
	<option value="20">20:00</option>
	<option value="21">21:00</option>
	<option value="22">22:00</option>
	<option value="23">23:00</option>
</select>到<input name="txtModiEndDate" type="text" size="8" id="txtModiEndDate" class="text-line"  value="yyyy-MM-dd" />&nbsp;<select name="selModEndTime" id="selModEndTime">
	<option value=""></option>
	<option value="0">00:00</option>
	<option value="1">01:00</option>
	<option value="2">02:00</option>
	<option value="3">03:00</option>
	<option value="4">04:00</option>
	<option value="5">05:00</option>
	<option value="6">06:00</option>
	<option value="7">07:00</option>
	<option value="8">08:00</option>
	<option value="9">09:00</option>
	<option value="10">10:00</option>
	<option value="11">11:00</option>
	<option value="12">12:00</option>
	<option value="13">13:00</option>
	<option value="14">14:00</option>
	<option value="15">15:00</option>
	<option value="16">16:00</option>
	<option value="17">17:00</option>
	<option value="18">18:00</option>
	<option value="19">19:00</option>
	<option value="20">20:00</option>
	<option value="21">21:00</option>
	<option value="22">22:00</option>
	<option value="23">23:00</option>
</select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="4">
                                            处理状态：<input name="bookgetstatus" value="0" type="checkbox" />新单<input name="bookgetstatus" value="1"  type="checkbox" />确认<input
                                                 name="bookgetstatus" value="7"  type="checkbox" />入住<input  name="bookgetstatus" value="8"  type="checkbox" />离店<input
                                                     name="bookgetstatus" value="5"  type="checkbox" />未到<input  name="bookgetstatus" value=""  type="checkbox" />手工单<input
                                                         name="bookgetstatus" value=""  type="checkbox" />待定<input
                                                         name="bookgetstatus" value=""  type="checkbox" />反悔<input id="chQX" type="checkbox"  onclick="checkOrder('bookgetstatus',this)"  />全选
                                        </td>
                                        <td colspan="2" style="text-align: left;">
                                            离店日期：<input name="txtLDDate" type="text" size="8" id="txtLDDate" class="text-line"  value="yyyy-MM-dd"/>
                                        </td>
                                        <td colspan="3" style="text-align: left;">
                                            入住日期从：<input name="txtCheckinStart" type="text" size="8" id="txtCheckinStart" class="text-line"  value="yyyy-MM-dd" />
                                            到
                                            <input name="txtCheckinEnd" type="text" size="8" id="txtCheckinEnd" class="text-line"  value="yyyy-MM-dd" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="4">
                                            担 保 单：<input id="cheputong" type="checkbox" />普通单<input id="chexinyongka" type="checkbox" />信用卡担保<input
                                                id="chegongsi" type="checkbox" />公司担保<input
                                                    id="cheqxdanbao"  type="checkbox" />全选
                                        </td>
                                        <td colspan="2" style="text-align: left;">
                                            确认：<input id="chequeren" type="checkbox" />已确认<input id="chenoqueren" type="checkbox" />未确认
                                        </td>
                                        <td style="text-align: left;" colspan="3">
                                            离店日期从：<input name="txtStartCheckOut" type="text" size="8" id="txtStartCheckOut" class="text-line"  value="yyyy-MM-dd"/>
                                            到
                                            <input name="txtEndCheckOut" type="text" size="8" id="txtEndCheckOut" class="text-line"  value="yyyy-MM-dd" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="4">
                                            备&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：<input name="txtRemark" type="text" id="txtRemark" maxlength="50" style="width: 106px;" class="text-line" /><input name="hidUserID" type="hidden" id="hidUserID" style="width: 34px" />
                                        </td>
                                        <td style="text-align: left;">
                                            PMS酒店：<select id="selPmsHotel" name="selPmsHotel" class="text-line">
                                                <option value="-1"></option>
                                                <option value="1">PMS酒店</option>
                                                <option value="2">非PMS酒店</option>
                                            </select>
                                        </td>
                                        <td colspan="4" style="text-align: left;">
                                                                                        &nbsp;<input id="chkDep" type="checkbox" /><label for="chkDep">查询无离店日期的离店单</label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="2">
                                            预付状态：<select id="drppaystatus" name="drppaystatus" class="text-line"><option value="-1">
                                                全部</option>
                                                <option value="0">支付中</option>
                                                <option value="1">已支付</option>
                                                <option value="2">支付失败</option>
                                            </select>
                                        </td>
                                        <td style="text-align: left;" colspan="2">
                                            支付方式：<select id="drppaymethod" name="drppaymethod" class="text-line"><option value="-1">
                                                全部</option>
                                                <option value="1">线上支付</option>
                                                <option value="2">线下支付</option>
                                            </select>
                                        </td>
                                        <td style="text-align: left;">
                                            &nbsp;</td>
                                        <td style="text-align: left;" colspan="4">
                                            <input id="chkSpec" type="checkbox" /><label for="chkSpec">有特殊需求</label>
                                            抵达时间：<select name="selHoldTimestart" id="selHoldTimestart">
	<option value=""></option>
	<option value="00:00">00:00</option>
	<option value="01:00">01:00</option>
	<option value="02:00">02:00</option>
	<option value="03:00">03:00</option>
	<option value="04:00">04:00</option>
	<option value="05:00">05:00</option>
	<option value="06:00">06:00</option>
	<option value="07:00">07:00</option>
	<option value="08:00">08:00</option>
	<option value="08:30">08:30</option>
	<option value="09:00">09:00</option>
	<option value="09:30">09:30</option>
	<option value="10:00">10:00</option>
	<option value="10:30">10:30</option>
	<option value="11:00">11:00</option>
	<option value="11:30">11:30</option>
	<option value="12:00">12:00</option>
	<option value="12:30">12:30</option>
	<option value="13:00">13:00</option>
	<option value="13:30">13:30</option>
	<option value="14:00">14:00</option>
	<option value="14:30">14:30</option>
	<option value="15:00">15:00</option>
	<option value="15:30">15:30</option>
	<option value="16:00">16:00</option>
	<option value="16:30">16:30</option>
	<option value="17:00">17:00</option>
	<option value="17:30">17:30</option>
	<option value="18:00">18:00</option>
	<option value="18:30">18:30</option>
	<option value="19:00">19:00</option>
	<option value="19:30">19:30</option>
	<option value="20:00">20:00</option>
	<option value="20:30">20:30</option>
	<option value="21:00">21:00</option>
	<option value="22:00">22:00</option>
	<option value="23:00">23:00</option>
</select>-<select name="selHoldTimeend" id="selHoldTimeend">
	<option value=""></option>
	<option value="00:00">00:00</option>
	<option value="01:00">01:00</option>
	<option value="02:00">02:00</option>
	<option value="03:00">03:00</option>
	<option value="04:00">04:00</option>
	<option value="05:00">05:00</option>
	<option value="06:00">06:00</option>
	<option value="07:00">07:00</option>
	<option value="08:00">08:00</option>
	<option value="08:30">08:30</option>
	<option value="09:00">09:00</option>
	<option value="09:30">09:30</option>
	<option value="10:00">10:00</option>
	<option value="10:30">10:30</option>
	<option value="11:00">11:00</option>
	<option value="11:30">11:30</option>
	<option value="12:00">12:00</option>
	<option value="12:30">12:30</option>
	<option value="13:00">13:00</option>
	<option value="13:30">13:30</option>
	<option value="14:00">14:00</option>
	<option value="14:30">14:30</option>
	<option value="15:00">15:00</option>
	<option value="15:30">15:30</option>
	<option value="16:00">16:00</option>
	<option value="16:30">16:30</option>
	<option value="17:00">17:00</option>
	<option value="17:30">17:30</option>
	<option value="18:00">18:00</option>
	<option value="18:30">18:30</option>
	<option value="19:00">19:00</option>
	<option value="19:30">19:30</option>
	<option value="20:00">20:00</option>
	<option value="20:30">20:30</option>
	<option value="21:00">21:00</option>
	<option value="22:00">22:00</option>
	<option value="23:00">23:00</option>
</select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left;" colspan="4">
                                            <!--Loading-->
                                            
                                            <!--Loading结束-->
                                        </td>
                                        <td style="height: 23px; text-align: right;" colspan="3">
                                            <input type="button" value="查询" onclick="Page_Load('First');"/>&nbsp;<img src='../../image/serc6.jpg' id="Img9" onclick="document.getElementById('proplist').value=''; document.getElementById('strwhere').value=''; searchUserOrder('search')"
                                                border="0" style="cursor: hand; display:none;" alt="审单查询" />&nbsp;
                                            </td>
                                    </tr>
                                </table>
        <br /><div id="loadinfo" align="center" >
                                                </div>
        
    <input type="hidden" id="orderkey" value="0" /><input type="hidden" id="txt_sql" value="" />
  <br /><uc1:jspage id="Jspage1" runat="server"></uc1:jspage>
   <script type="text/javascript">
  ///#region
   function createsearch()
   {
        var sstr="";
        var tempdate="";
        sstr+="{";
        
        sstr+="BookStatus:\""+$FN("bookstatus")+"\",";
        sstr+="BookGetStatus:\""+$FN("bookgetstatus")+"\",";
        sstr+="CheckinMI:\""+$FDate("txtcheckinstart")+"|"+$FDate("txtcheckinend")+"\",";
        sstr+="CheckOutMI:\""+$FDate("txtStartCheckOut")+"|"+$FDate("txtEndCheckOut")+"\",";
        
        sstr+="Confnum:\""+$F("txtConfnum").value+"\",";
        sstr+="pms:\""+$F("txtpms").value+"\",";
        sstr+="iata:\""+$F("iata").value+"\",";
        sstr+="UserName:\""+$F("txtUserName").value+"\",";
        sstr+="txtiata:\""+$F("txtiata").value+"\",";
        sstr+="guestname:\""+$F("guestname").value+"\",";
        sstr+="txtAddress:\""+$F("txtAddress").value+"\",";
        sstr+="txtPhone:\""+$F("txtPhone").value+"\",";
        tempdate=$FDate("txtBookStartDate");
        if(tempdate=="")
        {
          sstr+="txtBookStartDate:\"\",";
        }
        else
        {
          sstr+="txtBookStartDate:\""+tempdate+" "+$F("selBookStartTime").value+":00\",";
        }
        tempdate=$FDate("txtBookEndDate");
        if(tempdate=="")
        {
          sstr+="txtBookEndDate:\"\",";
        }
        else
        {
          sstr+="txtBookEndDate:\""+tempdate+" "+$F("selBookEndTime").value+":00\",";
        }
        tempdate=$FDate("txtModiStartDate");
        if(tempdate=="")
        {
          sstr+="txtModiStartDate:\"\",";
        }
        else
        {
          sstr+="txtModiStartDate:\""+tempdate+" "+$F("selModStartTime").value+":00\",";
        }
        tempdate=$FDate("txtModiEndDate");
        if(tempdate=="")
        {
          sstr+="txtModiEndDate:\"\",";
        }
        else
        {
          sstr+="txtModiEndDate:\""+tempdate+" "+$F("selModEndTime").value+":00\",";
        }
        
        sstr+="txtRZDate:\""+$FDate("txtRZDate")+"\",";
        sstr+="txtLDDate:\""+$FDate("txtLDDate")+"\",";
        sstr+="selPmsHotel:\""+$F("selPmsHotel").value+"\",";
        sstr+="txtRemark:\""+$F("txtRemark").value+"\",";
        sstr+="paystatus:\""+$F("drppaystatus").value+"\",";
        sstr+="paymethod:\""+$F("drppaymethod").value+"\",";
        if($F("chkDep").checked)
        {
          sstr+="chkDep:\"1\",";
        }
        else
        {
          sstr+="chkDep:\"0\",";
        }
        
        if($F("chenoqueren").checked)
        {
          if($F("chequeren").checked)
          {
            sstr+="confstatus:\"2\",";
          }
          else
          {
            sstr+="confstatus:\"0\",";
          }
        }
        else
        {
          if($F("chequeren").checked)
          {
            sstr+="confstatus:\"1\",";
          }
        }
        
        sstr=sstr.substring(0,sstr.length-1);
        
        sstr+="}";
        return sstr;
   }
   ///#endregion
   
   
   
   
   function down(filetype)
   {
     var sstr=createsearch();
     downloadfile(filetype,'noshow',sstr);
   }
    function Page_Load(pageindex)
    {//debugger
        var sstr=createsearch();
        pageindex=pageIndexSetting(pageindex);    //pageindex的设定
        EZCRS.HCMS.myajax.BookLog.BookRecord(pageindex, sstr,$F('orderkey').value,setTable);
        pageLastSetting(sstr,pageindex);     //最后的赋值
       
    }
    function setorders(orderstr)
    {
     if($F("orderkey").value==orderstr)
     {
      $F("orderkey").value=orderstr+orderstr;
     }
     else
     {
      $F("orderkey").value=orderstr;
     }
     Page_Load("First");
    }
    
    AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    AjaxPro.onLoading = function(b)
    {
        l.innerHTML="<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
    }    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    
   
 
 

function ShowDetail(bid)
{

 var body1=document.getElementsByTagName('body').item(0);
 //建立遮罩层;
if($F("helpboxpagecover")!=undefined)
{
 $F("helpboxpagecover").style.display='';
}
else
{
var fliterpanel=document.createElement("div");
 fliterpanel.setAttribute("id","helpboxpagecover");
 body1.appendChild(fliterpanel);
}
//建立内容层;
 var showpanel=$F("helpbox");
 if(showpanel==undefined)
 {
 showpanel=document.createElement("div");
 showpanel.setAttribute("id","helpbox");
 body1.appendChild(showpanel);
}
else
{
 showpanel.style.display='';
}
 showpanel.style.top=(document.documentElement.clientHeight/2-350)+'px';
showpanel.style.left=(document.body.clientWidth/2 -450)+'px';

var str="<div class=\"tlt\"><input type=\"hidden\" id=\"helpboxstep\" value=\"0\"/><a href=\"#\" onclick=\"javascript:closehelp();\">X</a></div>";
str+="<div class=\"detail\" id=\"showboxdetail\"><iframe width=\"580px\" height=\"280px\" frameborder=\"0\" scrolling=\"no\" src=\"bookdetail.aspx?id="+bid+"\"></iframe></div>";
str+="<div class=\"nav\" id=\"showboxnav\"> &nbsp;</div>";
showpanel.innerHTML=str;

}
      
function initsearch()
{
  //初始化日期控件
  $F("txtBookStartDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtBookStartDate',false,'txtBookStartDate','txtBookStartDate',null);};
  $F("txtBookStartDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtBookEndDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtBookEndDate',false,'txtBookEndDate','txtBookEndDate',null);};
  $F("txtBookEndDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtRZDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtRZDate',false,'txtRZDate','txtRZDate',null);};
  $F("txtRZDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtLDDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtLDDate',false,'txtLDDate','txtLDDate',null);};
  $F("txtLDDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtModiStartDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtModiStartDate',false,'txtModiStartDate','txtModiStartDate',null);};
  $F("txtModiStartDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtModiEndDate").onclick=function(){event.cancelBubble=true;showCalendarTA('txtModiEndDate',false,'txtModiEndDate','txtModiEndDate',null);};
  $F("txtModiEndDate").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtCheckinStart").onclick=function(){event.cancelBubble=true;showCalendarTA('txtCheckinStart',false,'txtCheckinStart','txtCheckinStart',null);};
  $F("txtCheckinStart").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtCheckinEnd").onclick=function(){event.cancelBubble=true;showCalendarTA('txtCheckinEnd',false,'txtCheckinEnd','txtCheckinEnd',null);};
  $F("txtCheckinEnd").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtStartCheckOut").onclick=function(){event.cancelBubble=true;showCalendarTA('txtStartCheckOut',false,'txtStartCheckOut','txtStartCheckOut',null);};
  $F("txtStartCheckOut").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
  $F("txtEndCheckOut").onclick=function(){event.cancelBubble=true;showCalendarTA('txtEndCheckOut',false,'txtEndCheckOut','txtEndCheckOut',null);};
  $F("txtEndCheckOut").onfocus=function(){if(!chkdate(this.value))this.value='yyyy-MM-dd';};
  
}

initsearch();         
            

function checkOrder(str,obj)
{
   var checkO=document.getElementsByName(str);
   for(var i=0;i<checkO.length;i++)
   {
    
    checkO[i].checked=obj.checked;
   }
}
</script> 

    
   
    </form>
  
    
   
</body>
</html>


